﻿using System;
using UnityEngine;

namespace Util
{
    
    public class Utils
    {

        public static bool IsPlayer(Collision2D collision)
        {
            if (collision == null)
            {
                return false;
            }
            return collision.gameObject.CompareTag(GameManager.Instance.PlayerTag);
        }

        public static bool IsPlayer(Collider2D collision)
        {
            if (collision == null)
            {
                return false;
            }
            return collision.gameObject.CompareTag(GameManager.Instance.PlayerTag);
        }


    }
}
